package com.leo.common.security.server.exception;

import org.springframework.security.oauth2.common.exceptions.ClientAuthenticationException;

/**
 * @Description:
 * @Author: johnny
 * @Date: 2020/4/27 16:55
 */
public class UserLockdException extends ClientAuthenticationException {

	public UserLockdException(String msg, Throwable t) {
		super(msg, t);
	}

	public UserLockdException(String msg) {
		super(msg);
	}

	@Override
	public int getHttpErrorCode() {
		return 401;
	}

	@Override
	public String getOAuth2ErrorCode() {
		return "invalid_token";
	}

}
